package Titiritero.titiritero.vista;

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import controlador.AlgoHero.*;


public class KeyPressedController extends KeyAdapter implements KeyListener {
	
	private ControladorAlgoHero controlador;
	
	public KeyPressedController(ControladorAlgoHero controlador){
		this.controlador = controlador;
	}

	public void keyPressed(KeyEvent e) {			
		this.controlador.teclaApretada(e.getKeyChar());
	}

	public void keyReleased(KeyEvent e) {
		this.controlador.teclaSoltada(e.getKeyChar());
	}

}
